import { post } from '@/request/http'
import store from '@/store'

//船公司 接口

// 列表数据接口
export const ShippingCompanyListA = (data) =>
  post(
    '/FTKJWLHYPT/base/tmShiplnesModelList',
    {
      Data: {
        Parameters: {
          FTKJWLHYPT: {
            splCode:data.splCode ,
            splName: data.splName
          },
          PageIndexs: {
            FTKJWLHYPT:data.PageIndexs
          },
          PageSizes: {
            FTKJWLHYPT:data.PageSizes
          }
        },
      }
    }
  )
//新增
export const addShippingCompanyA = (data) =>
  post(
    '/FTKJWLHYPT/base/addTmShiplnesModel',
    {
      Data: {
        Parameters: {
          FTKJWLHYPT: {
            splCode:data.splCode,
            splName:data.splName ,
            splShortname:data.splShortname,
            splEname:data.splEname,
            splRemark:data.splRemark ,
            splInsertdt:data.splInsertdt ,
            splInsertuser:store.state.user.USR_CODE_DX_H ,
            splUrl:data.splUrl,
            splUrlobj:data.splUrlobj
          }
        },
      }
    }
  )

//编辑
export const editShippingCompanyA = (data) =>
  post(
    '/FTKJWLHYPT/base/editTmShiplnesModel',
    {
      Data: {
        Parameters: {
          FTKJWLHYPT: {
            splId:data.splId,
            splCode:data.splCode,
            splName:data.splName,
            splShortname:data.splShortname,
            splEname:data.splEname,
            splRemark:data.splRemark,
            splLstupddt:data.splLstupddt,
            splLstupduser:store.state.user.USR_CODE_DX_H,
            splUrl:data.splUrl,
            splUrlobj:data.splUrlobj
          }
        },
      }
    }
  )
//删除
export const delShippingCompanyA = (data) =>
  post(
    '/FTKJWLHYPT/base/deleteTmShiplnesModel',
    {
      Data: {
        Parameters: {
          FTKJWLHYPT: {
            splId:data.splId
          }
        },
      }
    }
  )
